package service

import "zimuzu_cvn_web_api/model"

type ShopGoodsService struct {
	GId      int64
	Page     int
	PageSize int
}

// 获取商品信息接口
// Auth: hzp
func (goods *ShopGoodsService) Get() (res model.ShopGoods, err error) {

	res, err = model.GetShopGoodsInfo(goods.GId)
	if err != nil {
		return res, err
	}
	return res, nil
}

// 获取商品信息接口
// Auth: hzp
func (goods *ShopGoodsService) List() (res []model.ShopGoods, err error) {

	res, err = model.ListShopGoods(goods.Page, goods.PageSize)
	if err != nil {
		return res, err
	}
	return res, nil
}
